import * as API from "@/api/api";

export default {
  //项目信息
  getProjectBasicMsg: params => {
    return API.POST("/user/getProjectBasicMsg", params);
  },

  getProjectDynamics: params => {
    return API.POST("/user/getProjectDynamics", params, null, 1);
  },

  //项目动态-右侧表格
  getProjectDynamics: params => {
    return API.POST("/user/getProjectDynamics", params, null, 1);
  },

  //添加项目动态
  addProjectDynamics: params => {
    return API.POST("/user/addProjectDynamics", params);
  },

  //获取项目涉及到的人
  getPersonListByProjectId: params => {
    return API.POST("/user/getPersonListByProjectId", params);
  },


  //获取档案列表
  getProjectFileList: params => {
    return API.POST("/user/getProjectFileList", params,  "application/json", true);
  },

  //上传档案 
  doAddProjectFile: params => {
    return API.POST("/user/doAddProjectFile", params);
  },

  //删除档案
  doDelProjectFile: params => {
    return API.POST("/user/doDelProjectFile", params);
  },


//新-项目新增
addProjectOnly: params => {
  return API.POST("/user/addProjectOnly", params);
},

//新-媒体报备（第二步的接口）
addMediaRequirementsOnly: params => {
  return API.POST("/user/addMediaRequirementsOnly", params);
},

doAddIntendedMedia: params => {
  return API.POST("/user/doAddIntendedMedia", params);
},

//项目阶段
getStage: params => {
  return API.POST("/user/stage/getStage", params);
},

//项目-基本信息
getProjectManageMsg: params => {
  return API.POST("/user/getProjectManageMsg", params);
},

//项目编辑
editManageProject: params => {
  return API.POST("/user/editManageProject", params);
},

//添加媒体需求
addProjectMediaRequirements: params => {
  return API.POST("/user/addProjectMediaRequirements", params);
},

//修改媒体需求
updateProjectMediaRequirements: params => {
  return API.POST("/user/updateProjectMediaRequirements", params);
},

//修改媒体需求前获取详情
getProjectMediaRequirementsDetails: params => {
  return API.POST("/user/getProjectMediaRequirementsDetails", params,null,1);
},

//媒体需求列表
getProjectMediaRequirementsList: params => {
  return API.POST("/user/getProjectMediaRequirementsList", params);
},

exportOrder: params => {
  return API.POST("/user/exportOrder", params,null,1);
},

//确认签单
doSureCheckProjectAndSure: params => {
  return API.POST("/user/doSureCheckProjectAndSure", params,null,1);
},

//发货
shipmentcreate: params => {
  return API.POST("/user/shipment/create",params);
},

//确认发货
sureShipment: params => {
  return API.GET("/user/shipment/sureShipment",params);
},

//获取终版文件
getFinalFile: params => {
  return API.POST("/user/getFinalFile",params);
},

//确认配包终版
doSurePackage: params => {
  return API.POST("/user/doSurePackage",params,null,1);
},

//发货-查询(列表)
shipmentquery: params => {
  return API.POST("/user/shipment/query",params);
},

//发货-详情
shipmentgetDatils: params => {
  return API.GET("/user/shipment/getDatils",params,null,1);
},

//开始执行
startExecute: params => {
  return API.POST("/user/startExecute",params,null,1);
},

//执行完成
completeExecute: params => {
  return API.POST("/user/completeExecute",params,null,1);
},

//获取执行完成信息
getCompleteExecute: params => {
  return API.POST("/user/getCompleteExecute",params,null,1);
},

//重新配包
rePackage: params => {
  return API.POST("/user/rePackage",params);
},

}